package com.example.demo.model;

import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

@Data
public class ApprovalFormEntity implements Serializable {
    private static final long serialVersionUID = -4936009954084759314L;

    private String approvalFormId;
    private String instanceId;
    private String taskId;
    private String approvalUser;
    private String message;
    private Timestamp createTime;

    public ApprovalFormEntity(String instanceId, String taskId, String approvalUser, String message) {
        this.approvalFormId = instanceId + ":" + taskId;
        this.instanceId = instanceId;
        this.taskId = taskId;
        this.approvalUser = approvalUser;
        this.message = message;
        this.createTime = new Timestamp((new Date()).getTime());
    }
}
